package com.joseph.websocket.bean;

import java.io.Serializable;

public class Message implements Serializable {

    //前端发送的序列号，用于后台返回给前端标识消息服务器已经收到
    private String seqId;

    //所属会话id
    private String sessionId;

    //消息id
    private String msgId;

    //发送者消息
    private String fromId;

    //接受者消息
    private String toId;

    //发送类型
    private String content;

    //命令码，代表不同业务类型
    private Integer cmd;

    private Integer type;

    //商家编码
    private String storeCode;

    //加密方式 是否加密、加密算法
    private Integer cryptoType;

    //消息时间
    private Long msgTime = System.currentTimeMillis();

    //可见类型
    private Integer showType;

    //接受消息IP, 用于快速定位消息
    private String hostIp;

    public String getFromId() {
        return fromId;
    }

    public void setFromId(String fromId) {
        this.fromId = fromId;
    }

    public String getToId() {
        return toId;
    }

    public void setToId(String toId) {
        this.toId = toId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getMsgTime() {
        return msgTime;
    }

    public void setMsgTime(Long msgTime) {
        this.msgTime = msgTime;
    }

    public Integer getCmd() {
        return cmd;
    }

    public void setCmd(Integer cmd) {
        this.cmd = cmd;
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public String getSeqId() {
        return seqId;
    }

    public void setSeqId(String seqId) {
        this.seqId = seqId;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public Integer getShowType() {
        return showType;
    }

    public void setShowType(Integer showType) {
        this.showType = showType;
    }

    public String getStoreCode() {
        return storeCode;
    }

    public void setStoreCode(String storeCode) {
        this.storeCode = storeCode;
    }

    public Integer getCryptoType() {
        return cryptoType;
    }

    public void setCryptoType(Integer cryptoType) {
        this.cryptoType = cryptoType;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getHostIp() {
        return hostIp;
    }

    public void setHostIp(String hostIp) {
        this.hostIp = hostIp;
    }
}
